Skip to content

Fix ToolCallingChatOptions isInternalToolExecutionEnabled #2730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

ilayaperumalg
Copy link
Member

  • The ModelOptionsUtils merges the ToolCallingChatOptions with the provider chat options
    • The underlying beanwrapper implementation expects the boolean option to have the getter method starting with "get" instad of "is" which makes the current isInternalToolExecutionEnabled not used by the merge operation at all. To fix this, rename the isInternalToolExecutionEnabled method to getInternalToolExecutionEnabled and deprecate the existing isInternalToolExecutionEnabled method.

 - The ModelOptionsUtils merges the ToolCallingChatOptions with the provider chat options
   - The underlying beanwrapper implementation expects the boolean option to have the getter method starting with "get" instad of "is" which makes the current `isInternalToolExecutionEnabled` not used by the merge operation at all. To fix this, rename the `isInternalToolExecutionEnabled` method to `getInternalToolExecutionEnabled` and deprecate the existing `isInternalToolExecutionEnabled` method.

Signed-off-by: Ilayaperumal Gopinathan <ilayaperumal.gopinathan@broadcom.com>
@tzolov
Copy link
Contributor

tzolov commented Apr 15, 2025

Thanks @ilayaperumalg !
rebased and merged at 76a1dbe

@tzolov tzolov closed this Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants